//
//  UIView+HBCategory.h
//  HBLibary
//
//  Created by Rambo on 2018/10/26.
//

#import <UIKit/UIKit.h>

typedef NS_OPTIONS(NSInteger, UIViewBorderLineOption) {
    UIViewBorderLineOptionTop = 1 << 0,
    UIViewBorderLineOptionLeft = 1 << 1,
    UIViewBorderLineOptionBottom = 1 << 2,
    UIViewBorderLineOptionRight = 1 << 3
};

@interface UIView (HBCategory)

+ (CGFloat)hb_getStatusHeight;

+ (CGFloat)hb_getNavheight;

+ (CGFloat)hb_getTabbarHeight;


/**
 在周边画线

 @param option 线的位置
 @param width 线的宽度
 @param color 线的颜色
 */
- (void)hb_drawBorderLineAtOption:(UIViewBorderLineOption)option width:(CGFloat)width color:(UIColor*)color;

/**
 设置上圆角

 @param radius 圆角大小
 */
- (void)hb_setTopCornerWithRadius:(CGFloat)radius;

/**
 设置下圆角
 
 @param radius 圆角大小
 */
- (void)hb_setBottomCornerWithRadius:(CGFloat)radius;

/**
 设置全圆角
 
 @param radius 圆角大小
 */
- (void)hb_setAllCornerWithRadius:(CGFloat)radius;

/**
 设置左圆角
 
 @param radius 圆角大小
 */
- (void)hb_setLeftCornerWithRadius:(CGFloat)radius;

/**
 设置右圆角
 
 @param radius 圆角大小
 */
- (void)hb_setRightCornerWithRadius:(CGFloat)radius;

/**
 设置圆角
 
 @param radius 圆角大小
 @param rectCorner 圆角位置
 */
- (void)hb_setCornerWithRadius:(CGFloat)radius rectCorner:(UIRectCorner)rectCorner;


/**
 设置虚线

 @param rect rect
 @param lineWidth 虚线宽度
 @param lineColor 虚线颜色
 */
- (void)hb_drawLineOfDashWithFrame:(CGRect)rect lineWidth:(CGFloat)lineWidth lineColor:(UIColor *_Nullable)lineColor;

@end
